package com.sumainfor.wx.tenant.feign.Zfeign;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.fallback.ZfallBack.ZpcMarketFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


/**调用市场部服务
 */
@FeignClient(name = "tANGNEST-PC-MARKEt", fallback = ZpcMarketFallback.class)
public interface ZpcMktFeign {

    /**
     * 查询房源的活动优惠价格
     */
    @PostMapping("/tenant/key/rentadviser/RdWxActivity/getOptimalActivity")
    JsonResult getOptimalActivity(@RequestBody Map<String,Object> params);
    /**
     * 查询房源与业主的合同截止时间
     */
    @GetMapping("/tenant/key/rentadviser/RdWxOwner/getTimeCountOwner")
    JsonResult getTimeCountOwner(@RequestParam Map<String,Object> params);
    /**
     * 租客发起续签
     */
    @PostMapping("/tenant/key/rentadviser/RdWxPact/addRerentPact")
    JsonResult addRerentPact(@RequestBody Map<String,Object> params);
    /**
     * 租客发起换房申请
     */
    @PostMapping("/tenant/key/rentadviser/RdWxHousingExc/addHousingExc")
    JsonResult addHousingExc(@RequestBody Map<String,Object> params);
    /**
     * 租客发起转租
     */
    @PostMapping("/tenant/key/rentadviser/RdWxSubletApply/addSubletApply")
    JsonResult addSubletApply(@RequestBody Map<String,Object> params);
    /**
     * 根据合同编号查询租客是否已经发起过换房
     */
    @GetMapping("/tenant/key/rentadviser/RdWxHousingExc/getHousingExcCount")
    JsonResult getHousingExcCount(@RequestParam Map<String,Object> params);
    /**
     * 租客取消转租申请
     */
    @PostMapping("/tenant/key/rentadviser/RdWxSubletApply/updateCancelApply")
    JsonResult updateCancelApply(@RequestBody Map<String,Object> params);
    /**
     * 根据合同编号查询租客是否已经发起过换房
     */
    @GetMapping("/tenant/key/rentadviser/RdWxSubletApply/getSubApplyCount")
    JsonResult getSubApplyCount(@RequestParam Map<String,Object> params);
    /**
     * 租客取消换房申请
     */
    @PostMapping("/tenant/key/rentadviser/RdWxHousingExc/upHousingExc")
    JsonResult upHousingExc(@RequestBody Map<String,Object> params);
    /**
     * 租客端协助开门查询手机号是否该租客的室友
     */
    @PostMapping("/tenant/key/rentadviser/RdWxPact/getRdPactTenPhoneCount")
    JsonResult getRdPactTenPhoneCount(@RequestBody Map<String,Object> params);
    /**
     * 协助开门 查询当前租客所签房源列表
     */
    @GetMapping("/tenant/key/rentadviser/RdWxPact/getRdInteHouList")
    JsonResult getRdInteHouList(@RequestParam Map<String,Object> params);
    /**
     * 租客端协助开门查询房源的房间配置
     */
    @PostMapping("/tenant/key/rentadviser/RdWxPact/getRdInteHouConInfoList")
    JsonResult getRdInteHouConInfoList(@RequestBody Map<String,Object> params);
    /**
     * 给租客发送临时密码（每个租客每天只能发三次）
     */
    @PostMapping("/tenant/key/rentadviser/RdHouTemcode/addRdHouTemcode")
    JsonResult addRdHouTemcode(@RequestBody Map<String,Object> params);
    /**
     *查询租客当天申请临时密码的次数
     */
    @GetMapping("/tenant/key/rentadviser/RdHouTemcode/getRdHouTemcodeCount")
    JsonResult getRdHouTemcodeCount(@RequestParam Map<String,Object> params);
    /**
     *申请临时密码 查询该租客的房源信息列表
     */
    @GetMapping("/tenant/key/rentadviser/RdWxPact/getRdTemInteHouConList")
    JsonResult getRdTemInteHouConList(@RequestParam Map<String,Object> params);
    /**
     *智能设备充值 查询租客所租的智能设备房间
     */
    @GetMapping("/tenant/key/rentadviser/RdWxPact/getRdInteDeviceHouConList")
    JsonResult getRdInteDeviceHouConList(@RequestParam Map<String,Object> params);
    /**
     *智能设备充值 查询租客所租的房子智能设备余额的和
     */
    @GetMapping("/tenant/key/rentadviser/RdWxPact/getRdCensusHouConList")
    JsonResult getRdCensusHouConList(@RequestParam Map<String,Object> params);
    /**
     *租客端续签的时候查询房源是否发起过续签
     */
    @GetMapping("/tenant/key/rentadviser/RdWxPact/getRdRenPactData")
    JsonResult getRdRenPactData(@RequestParam Map<String,Object> params);

    /**
     * <p>
     * 增加租赁顾问评价
     * </p>
     *
     * @author: zhoucong
     * @since:
     */
    @PostMapping("/tenant/key/worderEva/AddWorderEva")
    JsonResult AddWorderEva(@RequestBody Map<String,Object> params);

    /**
     * <p>
     * 获取租赁顾问评价分类
     * </p>
     *
     * @author: zhoucong
     * @since:
     */
    @GetMapping("/tenant/key/worderEva/getWordEvaTmp")
    JsonResult getWordEvaTmp();

    /**
     * <p>
     * 判断是否评价
     * </p>
     *
     * @author: zhoucong
     * @since:
     */
    @PostMapping("/tenant/key/worderEva/getWorderEvaCount")
    JsonResult getWorderEvaCount(@RequestBody Map<String,Object> params);


    @GetMapping("/tenant/key/ToRenewPact/getRenewPact")
    JsonResult getRenewPact(@RequestParam Map<String,Object> params);

    @GetMapping("/tenant/key/TenHou/getHouCorId")
    JsonResult getHouCorId(@RequestParam Map<String,Object> params);


    @GetMapping("/tenant/key/paybill/getPaIdChaId")
    JsonResult getPaIdChaId(@RequestParam Map<String,Object> params);

    @PostMapping("/tenant/key/TenPaId/upPaIdFlow")
    JsonResult upPaIdFlow(@RequestBody Map<String,Object> params);


    @GetMapping("/tenant/key/TenPaId/getPatIfFlPaysss")
    JsonResult getPatIfFlPaysss(@RequestParam Map<String,Object> params);

    @PostMapping("/tenant/key/TenHou/getHouRoom")
    JsonResult getHouRoom(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/TenHou/getIntelligentRoom")
    JsonResult getIntelligentRoom(@RequestBody Map<String,Object> params);






}
